package ${package.Service};

import com.baomidou.mybatisplus.core.metadata.IPage;
import net.bigdata.cloud.framework.common.api.Resp;
import net.bigdata.cloud.framework.common.dto.BasePageDto;
import net.bigdata.cloud.framework.common.dto.IdBaseDto;
import net.bigdata.cloud.framework.common.service.BaseService;
import ${superServiceClassPackage};
import ${package.Entity}.${entity};


import java.util.List;

/**
 * @author ： ${author}
 * @date ：Created in ${date}
 * @description：${table.comment!} 服务类
 * @modified By：
 * @version: 1.0
 */
<#if kotlin>
interface ${table.serviceName} : ${superServiceClass}<${entity}>
<#else>
public interface ${table.serviceName} extends BaseService<${entity}> {

    /**
     * ${table.comment!}新增
     *
     * @param dto
     * @return
     */
    Resp<Boolean> addByPo(${entity} dto);

    /**
    * ${table.comment!}更新
    *
    * @param dto
    * @return
    */
    Resp<Boolean> updateByPo(${entity} dto);

    /**
    * ${table.comment!}详情
    *
    * @param dto
    * @return
    */
    Resp<${entity}> detail(IdBaseDto dto);

    /**
    * ${table.comment!}删除
    *
    * @param dto
    * @return
    */
    Resp<Boolean> removeByPo(IdBaseDto dto);


    /**
    * ${table.comment!}分页列表
    * @param dto
    * @return
    */
    Resp<IPage<${entity}>> getPage(BasePageDto dto);


}
</#if>